@import "color";

html, body {
    padding: 0;
    margin: 0;
    width: 100%;
    height: 100%;
    min-width: 1200px;
    overflow-y: hidden;
    color: @body-color;
}

body {
    font: .16rem/1.5 "Helvetica Neue", Helvetica, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", Arial, sans-serif;
}

*, *:after, *:before {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0;
    margin: 0;
}

i, em {
    font-style: normal;
}

li {
    list-style: none;
}

.inline {
    display: inline;
}

.inline-block {
    display: inline-block;
}

.mt10 {
    margin-top: .1rem;
}

.mt20 {
    margin-top: .2rem;
}

.mt30 {
    margin-top: .3rem;
}

.mr10 {
    margin-right: .1rem;
}

.mr20 {
    margin-right: .2rem;
}

.ml10 {
    margin-left: .1rem;
}

.ml20 {
    margin-left: .2rem;
}

.white-block {
    background-color: #fff;
    padding: .3rem;
}

/* element reset */
.el-container {
    height: 100%;
    overflow-x: hidden;
}

.el-header, .el-main, .el-footer {
    padding: 0 !important;
}

.el-header, .el-footer {
    //line-height: 60px;
}

.el-scrollbar {
    height: 100%;

    .el-scrollbar__wrap {
        overflow-x: hidden;

        .el-scrollbar__view {
            //height: 100%;
        }

        &.el-select-dropdown__wrap {
            overflow-x: scroll;
        }
    }
}

.sidebar {
    .el-menu-item-group__title {
        line-height: .5rem;
        font-size: .16rem;
        padding-left: .4rem !important;
        color: rgba(255, 255, 255, .3);
    }
}

.small {
    font-size: .14rem;
}

.mini {
    font-size: .12rem;
}

.error {
    color: @error;

    &.el-input {
        input {
            border-color: @light-error;
        }
    }
}

.closure {
    color: @gray-color;
}

.fl {
    float: left;
}

.fr {
    float: right;
}

.text-right {
    text-align: right;
}

.text-left {
    text-align: left;
}

.text-center {
    text-align: center;
}

.clear {
    display: block;
}

.full {
    width: 100%;
}

.clearfix {
    &:after {
        content: '';
        display: block;
        height: 0;
        clear: both;
        visibility: hidden;
    }
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    vertical-align: middle;
}

/* 最多两行 */
.two-single-line {
    width: 100%;
    display: -webkit-box;
    display: -moz-box;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-all;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

/* 页面切换动画 */
.slide-enter-active {
    -ms-transition: all .3s ease-out;
    -moz-transition: all .3s ease-out;
    -webkit-transition: all .3s ease-out;
    transition: all .3s ease-out;
}

.slide-leave-active {
    -ms-transition: all .3s ease-in;
    -moz-transition: all .3s ease-in;
    -webkit-transition: all .3s ease-in;
    transition: all .3s ease-in;
}

.slide-enter, .slide-leave-active {
    -ms-transform: translate(100%);
    -moz-transform: translate(100%);
    -webkit-transform: translate(100%);
    transform: translate(100%);
    z-index: 155;
}

/* 父子路由页面 */
.settle-box {
    position: relative;
    height: 100%;
    width: 85%;
}

.settle-sub-box {
    position: fixed;
    top: .8rem;
    bottom: 0;
    left: 2.4rem;
    right: 0;
    z-index: 1000;
    background-color: #F5F8FB;
}

.el-loading-mask {
    z-index: 1000;
}

.head-line {
    font-size: .18rem;
    padding-left: .13rem;
    position: relative;
    margin-bottom: .2rem;

    &:before {
        content: '';
        position: absolute;
        top: 50%;
        left: 0;
        margin-top: -.06rem;
        height: .12rem;
        width: 3px;
        background: #4995F4;
    }

    .info {
        float: right;
        max-width: 60%;
        color: @gray-color;
        font-size: .14rem;
    }
}

.form-common {
    .form-item {
        margin-bottom: .3rem;
        overflow: hidden;

        &:last-child {
            margin-bottom: 0;
        }

        .form-item-label {
            float: left;
            width: 1.3rem;
            padding-right: .3rem;
            line-height: .3rem;
            text-align: right;
            font-size: .16rem;
            color: @gray-color;
        }

        .form-item-content {
            margin-left: 1.3rem;
            font-size: .16rem;
            line-height: .3rem;
        }
    }

    .btns {
        text-align: center;
        margin-top: 1rem;
    }
}

.toolbar {
    font-size: 0;
    display: flex;
    align-items: flex-end;

    > div {
        flex: auto;

        > * {
            vertical-align: top;
            // margin-bottom: .1rem;
            margin-right: .1rem;

            &:last-child {
                margin-right: 0;
            }
        }
    }

    .el-button + .el-button {
        margin-left: 0;
    }

    > span {
        font-size: .14rem;
    }

    .el-date-editor {
        &.short {
            width: 2.5rem;

            .el-range-input {
                width: 36%;
            }

            .el-range-separator {
                width: 10%;
            }
        }
    }

    .input {
        width: 2.5rem;

        &.short {
            width: 1.7rem;
        }
    }

    .select {
        width: 2rem;

        &.short {
            width: 1.5rem;
        }
    }
}

.basic-container {
    min-height: 100%;
}

.tree-bar {
    width: 3rem;
    height: calc(100% - 0.2rem);
    position: absolute;
    top: .1rem;
    left: .1rem;
    //overflow: auto;

    > div {
        //padding-bottom: .2rem;
        height: 100%;
        overflow-y: auto;
    }
}

.basic-main {
    //.aside, .main {
    //    flex: none;
    //}

    .main {
        margin-left: 3.1rem;
        width: calc(100% - 3.1rem);
    }

    .content {
        width: 100%;
    }
}

.sysMsg {
    font-size: .16rem;
    line-height: .2rem;
    min-height: .4rem;
    padding: .1rem 0;
    border-bottom: .01rem solid #E1E1E1;
    margin-bottom: .3rem;
    margin-right: .5rem;

}

.sysMsg.grid-content, .grid-content {
    .sysTitle {
        float: left !important;
        width: 1.3rem !important;
        margin-right: 0 !important;
        color: #999;
    }

    .sysContenrt, .serviceContent {
        display: block !important;
        margin-left: 1.3rem !important;
        margin-right: .2rem;
        width: auto !important;
        word-break: break-all;
    }
}
